
<?php 
require_once "core/initialize.php";
require_once "includes/header.php";
require_once 'functions/changeprofile.php';

$user = new User();
$userprofile = $user->data()->profile;

if ($user->isLoggedIn()) { 
	
?>
<div class="section clearing dashboard">
	<div class="column div_1_of_5">
		<div class="user-info-wrapper">
			<div class="user-avatar-wrapper">
				
				<?php 
					if ($userprofile == "") {
						echo "<img src='uploaded/profile/default.png' width='238' height='190' />";
					}else {
						echo "<img src='uploaded/profile/". $userprofile ."' width='238' height='190' />";
					}	
				?>

			</div>
			<div class="user-data-wrapper">
				<ul>
					<li><i class="fa fa-user"></i> Chef <?php echo escape($user->data()->firstname) ." ". escape($user->data()->lastname); ?></li>
					<li><i class="fa fa-sitemap"></i> <?php  echo escape($user->data()->department);?></li>
					<li><i class="fa fa-calendar"></i> <?php echo escape($user->data()->joined) ?></li>			
				</ul>
			</div>
		</div>
		<div class="column div_1_of_1">
			<ul id="menu-create-recipe">

				<li  class="widgetButtonTheme"><a href="#modal">Create Recipe</a></li>
			</ul>
		</div>
	</div><!-- END OF USER PROFILE SECTION -->
	<div class="column div_4_of_5">
		<?php require_once "includes/recipes-components.php";?>	
	</div>
</div>
<div class="remodal" data-remodal-id="modal">

   	<input type="text" placeholder="Recipe Title">
   	<br/><br/>
   	<textarea style="height:350px;" placeholder="Cooking Skills Needed:
How to Steam
How to Cube and Dice
How to Chop and Mince
Cooking Tools Needed:
Bowl
Steamer
Knife
Foil
Tray
Twine
Ingredients
600 grams	Ground Pork
3 pc (medium semi ripe)	Saba	(boiled and grated)
3 pc	Eggs	(beaten)
3 pc (150 g) medium	Onion
2 pc (300 g) medium	Carrots
1 pc (75 g) large	Red Bell Pepper	(chopped)
1/3 cup	Sweet Pickle Relish
4 slices	Sliced Bread	(diced, 1 1/3 cups)
1 pouch (250 grams)	Del Monte
Original Style Tomato Sauce
Cooking Procedure:
Combine all ingredients in a bowl. Season with 2 Â½ teaspoon iodized fine salt (or 1 Â½ tablespoon iodized rock salt and 1 teaspoon pepper). Mix thoroughly.

Place every 1Â½ cups of mixture on aluminium foil or colorless cellophane. Roll then fold ends (for foil) or tie both ends of cellophane with crocheting thread. Steam for one hour. Let cool then chill overnight. Slice diagonally just before serving."></textarea>
    <br>
    <br>
    <a class="remodal-cancel" href="#">Cancel</a>
    <a class="remodal-confirm" href="#">Post</a>
</div>
<link rel="stylesheet" type="text/css" href="public/css/jquery.remodal.css">
<script type="text/javascript" src="public/js/jquery.remodal.js"></script>
<script>

</script>
<?php
require_once "includes/footer.php";	
}else {
	Redirect::to('index.php');
}
